Skip to content

fix: emit warnings for silent parameter introspection failures#131

Open
Oaklight wants to merge 1 commit intomasterfrom
fix/126-param-warnings
Open

fix: emit warnings for silent parameter introspection failures#131
Oaklight wants to merge 1 commit intomasterfrom
fix/126-param-warnings

Conversation

@Oaklight
Copy link
Copy Markdown
Owner

Summary

  • Emit UserWarning when *args or **kwargs parameters are skipped during JSON Schema generation
  • Emit UserWarning when parameter model generation fails in Tool.from_function(), instead of silently producing an empty schema
  • Add 9 new tests verifying warning behavior

Closes #126

Test plan

  • Function with *args emits warning about JSON Schema exclusion
  • Function with **kwargs emits warning about JSON Schema exclusion
  • Function with both *args and **kwargs emits two warnings
  • Failed parameter model generation emits warning with exception details
  • All 850 existing tests pass (warnings don't break anything)

- Warn when *args or **kwargs are skipped during JSON Schema generation
- Warn when parameter model generation fails in Tool.from_function()
  instead of silently producing an empty schema
@Oaklight Oaklight force-pushed the fix/126-param-warnings branch from 77272cc to 56c2f8c Compare April 20, 2026 05:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fix: emit warnings for silent parameter introspection failures

1 participant